package com.giantlizard.cloud.system.vo;

import com.giantlizard.cloud.base.baseService.ITreeNode;
import com.giantlizard.cloud.system.entity.SysRes;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * 系统-资源 VO对象
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="SysResVO对象", description="系统-资源 VO对象")
public class SysResVo extends SysRes implements ITreeNode<SysResVo, String>, Serializable {
    private static final long serialVersionUID = 1L;

    private List<SysResVo> children;

    @Override
    public String getId() {
        return super.getId();
    }

    @Override
    public String getParentId() {
        return super.getParentId();
    }

    @Override
    public List<SysResVo> getChildren() {
        return this.children;
    }

    @Override
    public void setChildren(List<SysResVo> children) {
        this.children = children;
    }
} 